package com.ease.model.criteria;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 
 * @author nathanleewei
 * 
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.METHOD })
public @interface Criteria {

	public String BY_DEFAULT_RULE = "?byFieldName?";

	/**
	 * 
	 * @return
	 */
	CriteriaType type() default CriteriaType.Equal;

	// by default, columnName can be got by CriteriaType & fieldName
	String columnName() default BY_DEFAULT_RULE;

	//
	String value() default "";
}
